Repository navigation
fix(drivers/139): renew expired multipart upload URLs - #3360
Open
mumingluan wants to merge 1 commit into
Open
mumingluan wants to merge 1 commit into
mumingluan wants to merge 1 commit into
Conversation
- Renew the pending batch under the same upload ID when EOS rejects an expired signature. - Keep completed parts and rewind the current section before retrying. - Cover expiry recovery and unrelated 403 responses with HTTP tests. Co-authored-by: Codex <267193182+codex@users.noreply.github.com>
14 of 20 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary / 摘要
On long uploads to 139Yun, an EOS part URL can expire before the client reaches that part. Retrying the same URL produces repeated HTTP 403 responses with
AccessDenied / Request has expired.Refresh URLs for the current and remaining parts of the batch under the existing upload ID.
Rewind the current part, keep already completed parts, and continue with the refreshed URLs.
Bound the refresh to one attempt per affected part and keep ordinary transfer retries separate. Other permission errors still fail normally.
This PR has breaking changes.
This PR changes public API, config, storage format, or migration behavior.
This PR requires corresponding changes in related repositories.
Testing / 测试
go test -tags jsoniter ./drivers/139andgo test -race -tags jsoniter ./drivers/139on Windows amd64.go test ./...Checklist / 检查清单
gofmt.AI Disclosure / AI 使用声明
Co-authored-bytrailer.Codex reviewed the diff and ran the focused tests and build checks described above.